/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.pucp.sistemasInf.utiles;

/**
 *
 * @author Cesar
 */
public class VerificarDatos {
    
    public static boolean isNumber(char c)
    {
        if(((c < '0') ||
         (c > '9')) &&
         (c != '\b' /*corresponde a BACK_SPACE*/))
      {
         return false;
      }
        
      return true;
    }
    
    public static boolean isRucCompleted(String s)
    {
        if (s.length()>10) return true;
        return false;
    }
    
    public static boolean isPhoneNumberCompleted(String s)
    {
        if (s.length()>8) return true;
        return false;
    }
}
